package com.zhixue.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhixue.content.model.dto.CoursePreviewDto;
import com.zhixue.content.model.po.CoursePublish;

import java.io.File;

/**
 * @Auther: 李 力
 * @Date: 2025/5/3
 * @Description: com.zhixue.content.service
 * @version: 1.0
 */
public interface CoursePublishService extends IService<CoursePublish> {
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);

    public void commitAudit(Long companyId, Long courseId);

    public void publish(Long companyId, Long courseId);

    public File generateCourseHtml(Long courseId);

    /**
     * @param file 静态化文件
     * @return void
     * @description 上传课程静态化页面
     */
    public void uploadCourseHtml(Long courseId, File file);

    CoursePublish getCoursePublish(Long courseId);
}
